package exception;

/**
 * 数字格式不正确异常(运行时异常)
 */
public class NumberFormatException_ {

    public static void main(String[] args) {

        String name = "lmy";
        //将String转成int
        int num = Integer.parseInt(name);//抛出NumberFormatException

        System.out.println(num);//1234
    }
}
